﻿using System;
using System.Collections.Generic;

namespace TradeCore.Model
{
    /// <summary>
    /// 买卖方向
    /// </summary>
    public enum DirectionType
    {
        /// <summary>
        /// 多头
        /// </summary>
        Buy,

        /// <summary>
        /// 空头
        /// </summary>
        Sell,

        /// <summary>
        /// 平仓
        /// </summary>
        Close
    }

    /// <summary>
    /// 账号基类
    /// </summary>
    public class AccountBase
    {
        /// <summary>
        /// 市场类型
        /// </summary>
        public MarketType Market { get; set; }

        /// <summary>
        /// 账号
        /// </summary>
        public string Account { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
    }

    /// <summary>
    /// CTP账号
    /// </summary>
    public class CtpAccount : AccountBase
    {
        public CtpAccount()
        { 
            
        }

        /// <summary>
        /// 经纪商ID
        /// </summary>
        public string BrokerID { get; set; }
    }
}
